<template>
    <div>
        <h2>cart</h2>
        {{ num }} <button @click="num++">+</button>
    </div>
</template>
<script>
export default {
    data() {
        return {
            num: 0
        }
    }

}
</script>